package main

import (
	initplugs "{{.ProjectName}}/init_plugs"
	{{.ProjectName}}_pb "{{.ProjectName}}/pb"
	"{{.ProjectName}}/services"

	"gitee.com/wu-jin-feng/fgin"
)

func main() {
	f := &fgin.Fgin{}
	// 创建服务
	grpcServer := f.GetGrpcServer("./cfg.yaml")
	// 注册创建
	initplugs.InitPlugs(f)
	{{.ProjectName}}_pb.Register{{.PrjPascal}}Server(grpcServer, &services.{{.PrjPascal}}Server{})
	f.RunGrpc(grpcServer)
}
